﻿{% extends "layout.html" %}


{% block title %}
<title></title>
{% endblock %}

{% block style %}
{% endblock %}


{% block li %}
       <li><a href="content.html">内容</a></li>
        <li>布置作业</li>
{% endblock %}

{% block content %}
    <div class="admin">
        <div class="tab-body">
					<br />
					<div class="tab-panel active" id="tab-set">
						<form method="post" class="form-x" action="/add_test_bank.html/">
							<div class="form-group">
                                <div class="field">
									<textarea class="input" name ="assignment" rows="2" cols="50" placeholder="布置你要出的题目1" data-validate="required:请填写题目"></textarea>
								</div>
							</div>
							<div class="form-group">
								<div class="field">
									<input type="text" class="input"  name="aName" size="50" placeholder="选项A" data-validate="required:请填写选项A" />
                                    <input type="hidden" name="username" value="{{username}}">
                                     <div style="height: 10px;"></div>
                                </div>
                                <div class="field">
                                     <input type="text" class="input"  name="bName" size="50" placeholder="选项B" data-validate="required:请填写选项B" />
                                      <div style="height: 10px;"></div>
                                </div>
                                <div class="field">
                                     <input type="text" class="input"  name="cName" size="50" placeholder="选项C" data-validate="required:请填写选项C" />
                                     <div style="height: 10px;"></div>
                                </div>
                                <div class="field">
                                     <input type="text" class="input"  name="dName" size="50" placeholder="选项D" data-validate="required:请填写选项D" />
                                    <div style="height: 10px;"></div>
                                </div>
                                <div class="field">
                                    <select class="select picker" name="rigth">
                                        <option>=== 正确答案 ===</option>
                                        <option value="A">A</option>
                                        <option value="B">B</option>
                                        <option value="C">C</option>
                                        <option value="D">D</option>
                                    </select>
                                </div>
                            </div>

                            <div class="form-group">
								<div class="field">
									<select class="select picker" name="subjectId">
                                        <option>=== 请选学科 ===</option>
                                        {% for each in cls %}
                                        <option value=" {{each.subId }}">{{ each.subId }}</option>
                                        {% endfor %}
                                    </select>
								</div>
							</div>
                         <div class="form-group">
                         </div>
							<div class="form-button">
								<button class="button bg-main" type="submit">保存</button>
							</div>
						</form>
					</div>
				</div >
    </div>

{% endblock %}

{% block js %}
       <script>
        $(function () {
            $('#test').addClass('active')
            $('#home').removeClass('active')
        });
    </script>
{% endblock %}